
let josn = new Proxy({
    name:"jd",
    age:9
},{
    get:function(target,key,receiver){ //目标对像 属性名 proxy实例本身
        console.log(`get ${key}`);
        return Reflect.get(target,key,receiver);

    },
    set:function( target,key,value){ //目标对象 属性名 属性值  proxy实例本身
        console.log(`set ${key}`);
        return Reflect.set(target,key,value)
    }
})

console.log( josn.name,josn.age );
josn.age = 10
